package cn.jingyinghui.controller;

import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/germmy")
public class HelloGermmyController {

    @GetMapping("/hello")
    public String hello() {
        return "Hello Germmy! Welcome to LangChain4j!";
    }

    @PostMapping("/hello")
    public String helloWithMessage(@RequestBody String message) {
        return "Hello Germmy! Your message: " + message;
    }

    @GetMapping("/hello/{name}")
    public String helloWithName(@PathVariable String name) {
        return "Hello " + name + "! Greetings from Germmy!";
    }
}
